import avltree.AVLTree;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-08-18
 * Time: 17:59
 */
public class Test {
    public static void main(String[] args) {
        int[] array = new int[]{16, 3, 7, 11, 9, 26, 18, 14, 15};

        AVLTree avlTree = new AVLTree();
        for (int i = 0; i < array.length; i++) {
            avlTree.insert(array[i]);
        }

        System.out.println(avlTree.isBalanced(avlTree.root));
    }
}
